package com.ply.flashsalessystem.config;
 
import com.alipay.easysdk.factory.Factory;
import com.alipay.easysdk.kernel.Config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
 
/**
 *  项目初始化
 *
 * @author wangziyang
 * @date 2020-09-08
 * */
public class AlipayConfig {
    // 商户appid
    public static String APPID = "2021000119673490";
    // 私钥 pkcs8格式的
    public static String RSA_PRIVATE_KEY = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC4sbakwjQobZ1W94F2ijGmyqOoAx/3ZdmG9Q4IM6ZzI+v4M7nKqsYnnrbbNp545BUGLfiGXBuuhwtoYLe2WJaht/Iv+FgJoGcvFjqvtieddDrWbrz68yXl8SO6TwMj5PEdv3ghjsXyPeDQR+5NHLbocNPOgpuAxhg7HETLyGXyA+Hb6V1Zc92lQCBy45Q/Pfmv98fogrPybraMhzOaj44AplY4vhipfUWv5RbOrkaSvPp81vaNvhv9UbwbFcM4TA79ejffVqCqIKeU53LpeSGYJ90HQzGovsOmB5RgtzLV8TRwSAQQsAbpAoL6Xvvug2qNCDYSmGGWPzJQ2DZSbecZAgMBAAECggEAMUOt7SqkEPiUFGN2k/Dup4e7uZAD0dDIAhiRgpyMVIALbCwX7bg5nM3YBob+JE7qULioZuZgt9/rqg7KUgg1PbO8FRGQIhk4DLZINyBGVthu7U2ieOmsfTYiCosS0ls5+W5eE81qfWAF/GiDZuw22a9mv9nUsrekNPgoXZb5omD0XXB0rD4cMUZoUGYVKgojO3Vciid9pijkVLM7lKZzSMmCxswROPZse23IcZmOw+E2m5YLZc/uScyOnb3ZhmQjdG66YempM68qbunM3OG2w+DW1D9QwZAr44An7GdC6xvG+4ldbs06ANCJ69OsneU5o0qHiHaYDQk0Za1kxToARQKBgQDrJ41T7LUtoUeE5HFRCsg0C5gIJaILybNUoDBSAD9fXEfys8rN9g8wyceCVgPG4HNo8bh0CQk/p1Zb9e/enjEDnlzHeBdtkNFyvPoFgOUXUpPmsqPWUEYCdcdkSINX3Lkyfur3aDXCVIRkHCvQsNexSzQjBZbBfEKpZioALcqfGwKBgQDJEQwITTQwPKLtybiqNlwCKLFZHE+XdHNak+DmuuWOh9RiuVm+hgmOM4H4PRAgSANElvT+NSrkxmjo/koXF7OZHyUwT0mysOsQ2KCA1OyddGbzDIaQTUFN1rp6RnY0aqFJDUGP7cA99cwXc9fPaWbIyZDJICjSNKZ6QmOqIgUR2wKBgFpVn10WGaOlySur9jwDwFT9/zFiA5YzrchcoTNfFPk1Ig6CMu5cEAnV+eZ/1IOZxbwS36Dzt7HUPsClAbirXHjfZRTbdWSJtWw2XHWwxlDnUBnXlkjGHZ7kT+yeTpZ6HErhprHUPpKglRtAFzTcOn/JPAYYJ4m8in841/mpnaTxAoGAUMPFNox0ey/QLn4J7G1bdg6MdoP1wJupPmgKPgQy85bCDEnxr6M9sV4lReaZVK44idOtY3NN4ImGWJjUgAQoQ0iMcqRWsS15rtGlXzqoNPMt61FLuCkgIzkuvLETCCkQ0jw96qeQwhK6wWzp8kmfXOYCf5eobg9yE8gZKpzxtmMCgYAw0fseumgLdGt+s7jKhqap4Bx2LtneHKfdYckVyGttxP28BujxeJjkvyVIECnZeK/C3ceSof0iax9ijpf7bW9obIL0xD0AbLE9MY9X7FiJoZI7yYbW9BNwGEcPP35/nIu2grGIQPg1LUnDA6faKHnwlQYAgw0NTMJtry9KkpM7gg==";

    // 服务器异步通知页面路径 需http://或者https://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
//    public static String notify_url = "http://localhost:8080/callback";
    public static String notify_url = "http://120.76.119.66:8080/no";
    // 页面跳转同步通知页面路径 需http://或者https://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问 商户可以自定义同步跳转地址
    public static String return_url = "http://120.76.119.66:8080/return";
//    public static String return_url = "http://localhost:8080/return";
    // 请求网关地址
    public static String URL = "https://openapi.alipaydev.com/gateway.do";
    // 编码
    public static String CHARSET = "UTF-8";
    // 返回格式
    public static String FORMAT = "json";
    // 支付宝公钥
    public static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4rpxsWN0FmIOey8Hx2L85Sr7P8vZihH9I+sDtjZQegel4XXJzDZ2wKWwuV/3QkpDK4bLnew/ytEjFCE6IMDyE2FIQf+lsdm6ywkki8SlaQwVzgLkvVxXNKkyKyWKxMzgGBUD90MdL55Io+CrmONfeTLsuh9JQnjkfHgDGQYgdYz/pqch77gp7XiNo/eIg52ZY3paqtPDmKtvLDyekXB1nN9Wvf/cPSIBub2k6QTLLf3XSdxq97k0DyvfnBcuq8qnMMjV2HEtYwIPwOar5VWc0YZGRHjzxOucKfuQX9T5ydad0S6+a0rNmA9byTISrcaNEhthw3E/1n12zuP4egQq1wIDAQAB";

    // 日志记录目录定义在 logFile 中
    public static String log_path = "/log";
    // RSA2
    public static String SIGNTYPE = "RSA2";

}
